package com.ease.common.vo;

import java.util.Map;

import org.springframework.core.io.support.PropertiesLoaderSupport;

/**
 * 
 * @author nathanleewei
 * 
 */
public class PropertiesLoaderBean extends PropertiesLoaderSupport {

	// @Remoting(false)
	// private static final Log log =
	// LogFactory.getLog(PropertiesLoaderBean.class);

	protected Map<Object, Object> map;

	public void init() {
		try {
			map = this.mergeProperties();
		} catch (Exception e) {
			// log.error("Load properties failed!", e);
		}
	}

	public String get(String key) {
		if (null != map) {
			return (String) map.get(key);
		}
		return null;
	}
}
